<template>
  <div class="xiang">
    <div class="item" v-show="flag">
      <div class="box">
        <span>就诊记录详情</span>
        <a href="#" @click="close"><span>X</span></a>
      </div>
      <div class="box2">
        <ul>
          <li>
            <span class="t">就诊日期:</span>
            <span class="c">{{list1.date}}</span>
          </li>
          <li><span class="t">医生姓名:</span><span class="c">{{list1.doctor}}</span></li>
          <li>
            <span class="t">诊断结果:</span>
            <span class="c">{{list1.diagnosis}}</span>
          </li>
          <li><span class="t">处方信息:</span><span class="c">{{list1.prescription}}</span></li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'XiangQing',
  // props: {
  //   flag: {
  //    type: Boolean,
  //     required: true,
  //   },
    //  list1:{
    //   type:Array,
    //   required: true,
    //  }
  // },
  props:['flag','list1'],
  components: {},
  data() {
    return {};
  },
  methods: {
    close() {
      this.$emit('close')
    }
  },
  mounted() {},
  watch: {},
  computed: {},
  filters: {},
};
</script>

<style scoped lang="less">
* {
  margin: 0;
}
body {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  background-color: rgba(0, 0, 0, 0.3);
}
.item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 345px;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
  background-color: #fff;
  transform: translate(-50%, -50%);
  z-index: 12;
}
.box {
  height: 100px;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.box2 ul {
  height: 240px;
  display: flex;
  padding: 0;
  justify-content: space-around;
  flex-direction: column;
  font-weight: 700;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
  color: black;
}
</style>
